import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
// 打包使用的是按需加载样式插件vite-plugin-style-import
 
if (import.meta.env.DEV) {
    
    import('ant-design-vue/dist/antd.less');
  }
const app = createApp(App)
app.config.globalProperties.$en = 'dev'

declare module 'vue' {
    export interface ComponentCustomProperties {
        $en: string
    }
}
app.use(router)
app.use(createPinia())

app.mount('#app')
